
function showMenu(num,id)

{
   getItemMenu(num,id);

   

        popMenu(itemMenu,100,"111");


  

    event.returnValue=false;

       event.cancelBubble=true;

       return false;

}

 




function popMenu(menuDiv,width,rowControlString)

{

    var pop=window.createPopup();


    pop.document.body.innerHTML=menuDiv.innerHTML;

    

    var rowObjs=pop.document.body.all[0].rows;


    var rowCount=rowObjs.length;


    for(var i=0;i<rowObjs.length;i++)

    {


        var hide=rowControlString.charAt(i)!='1';

        if(hide){

            rowCount--;

        }


        rowObjs[i].style.display=(hide)?"none":"";


        rowObjs[i].cells[0].onmouseover=function()

        {

            this.style.background="#00FFFF";

            this.style.color="white";

        }


        rowObjs[i].cells[0].onmouseout=function(){

            this.style.background="#00FFFF";

            this.style.color="black";

        }

    }


    pop.document.oncontextmenu=function()

    {

            return false;

    }


    pop.document.onclick=function()

    {

            pop.hide();

    }


    pop.show(event.clientX-1,event.clientY,width,rowCount*25,document.body);

    return true;

}

 



 



function create(number,obj)
{


obj=obj || self;
if(number==1)
{
obj.location.href="pricingPlan.action?act=creating";
}else if(number==2)
{
obj.location.href="eventPricingStrategy.action?act=creating";
}else if(number==3)
{
obj.location.href="pricingSection.action?&act=creating";
}else if(number==4)
{
obj.location.href="tariff.action?act=creating";
}else if(number==5)
{
obj.location.href="constellationExpress.action?act=creating";
}
}

 



function update(number,id,obj)

{
obj=obj || self;
if(number==1)
{

obj.location.href="pricingPlan.action?act=updating&pricingPlan.pricingPlanId="+id;

}else if(number==2)
{
obj.location.href="eventPricingStrategy.action?act=updating&eventPricingStrategy.eventPricingStrategyId="+id;
}else if(number==3)
{
obj.location.href="pricingSection.action?act=updating&pricingSection.pricingSectionId="+id;
}else if(number==4)
{
obj.location.href="tariff.action?act=updating&tariff.tariffId="+id;
}else if(number==5)
{
obj.location.href="constellationExpress.action?act=updating&constellationExpress.constellationExpressId="+id;
}
   

}

 



function del(number,id,obj)

{

  obj=obj || self;
if(number==1)
{
window.open("pricingPlan.action?act=delete&frm=mainForm&pricingPlan.pricingPlanId="+id,null,"scrollbars=no,resizable=no,width=0,height=0,left=0,top=0");

}else if(number==2)
{
window.open("eventPricingStrategy.action?act=delete&frm=mainForm&eventPricingStrategy.eventPricingStrategyId="+id,null,"scrollbars=no,resizable=no,width=0,height=0,left=0,top=0");
}else if(number==3)
{
window.open("pricingSection.action?act=delete&frm=mainForm&pricingSection.pricingSectionId="+id,null,"scrollbars=no,resizable=no,width=0,height=0,left=0,top=0");
}else if(number==4)
{
window.open("tariff.action?act=delete&frm=mainForm&tariff.tariffId="+id,null,"scrollbars=no,resizable=no,width=0,height=0,left=0,top=0");

}else if(number==5)
{
window.open("constellationExpress.action?act=delete&frm=mainForm&constellationExpress.constellationExpressId="+id,null,"scrollbars=no,resizable=no,width=0,height=0,left=0,top=0");
}

}

 



function clickMenu()

{

    alert("you click a menu!");

}

 

